www.gusucode.com > tpframe PHP开发框架 v2.2PHP源码程序 > tpframe PHP开发框架 v2.2/tpframe_v2.2.0618/tpframe_v2.2.0618/data/runtime/temp/6cbfd90be67ffa8487e36856970c75c5.php
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:35:"addon/blog/view/comments\index.html";i:1529151136;}*/ ?> <?php use \tpfcore\Core; ?> <!doctype html> <html> <head> <meta charset="utf-8"> <!-- Set render engine for 360 browser --> <meta name="renderer" content="webkit"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- HTML5 shim for IE8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"> </script> <![endif]--> <link href="<?php echo $admin_assets_path; ?>/css/theme.min.css" rel="stylesheet"> <link href="<?php echo $admin_assets_path; ?>/css/simplebootadmin.css" rel="stylesheet"> <link href="<?php echo $admin_assets_path; ?>/css/default.css" rel="stylesheet" /> <link href="<?php echo $admin_assets_path; ?>/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <style> .length_3{width: 180px;} form .input-order{margin-bottom: 0px;padding:3px;width:40px;} .table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;} .table-list{margin-bottom: 0px;} </style> <!--[if IE 7]> <link rel="stylesheet" href="<?php echo $admin_assets_path; ?>/css/font-awesome-ie7.min.css"> <![endif]--> <script type="text/javascript"> //全局变量 var GV = { WEB_ROOT:"", DIMAUB: "/", JS_ROOT: "/theme/backend/assets/js/", TOKEN: "" }; </script> <!-- Le javascript==================================================- -> <!-- Placed at the end of the document so the pages load faster --> <script src="<?php echo $admin_assets_path; ?>/js/jquery.js"></script> <script src="<?php echo $admin_assets_path; ?>/js/wind.js"></script> <script src="<?php echo $admin_assets_path; ?>/js/bootstrap.min.js"></script> </head> <body> <div class="wrap js-check-wrap"> <ul class="nav nav-tabs"> <li class="active"><a href="<?php echo url('blog/comments/index'); ?>">评论管理</a></li> </ul> <form method="post" class="js-ajax-form" action=""> <table class="table table-hover table-bordered table-list"> <thead> <tr> <th width="50">ID</th> <th>评论者</th> <th>评论内容</th> <th>被评论的文章</th> <th>评论时间</th> <th width="45">状态</th> <th width="120">操作</th> </tr> </thead> <tbody> <?php if(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty())): else: if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> <tr> <td> <?php echo $vo['id']; ?> </td> <td> <?php echo $vo['author']; ?> </td> <td> <?php echo $vo['comment']; ?> </td> <td> <a href="<?php echo url('blog/index/index',['id'=>$vo['posts_id']]); ?>" target="_blank"> <?php echo $vo['title']; ?> </a> </td> <td> <?php echo date('Y-m-d H:i:s',$vo['datetime']); ?> </td> <td> <?php if($vo['ischeck'] == '1'): ?> <img src="/data/assets/images/btn_enable.png" class="ajax-status" data="BlogComments|ischeck|id|<?php echo $vo['id']; ?>" action="<?php echo url('blog/comments/ajaxdata'); ?>"/> <?php else: ?> <img src="/data/assets/images/btn_disable.gif" class="ajax-status" data="BlogComments|ischeck|id|<?php echo $vo['id']; ?>" action="<?php echo url('blog/comments/ajaxdata'); ?>"/> <?php endif; ?> </td> <td> <a href="<?php echo url('blog/comments/del',['id'=>$vo['id']]); ?>" data-msg="删除后不可恢复?" class="js-ajax-dialog-btn"> 删除 </a> </td> </tr> <?php endforeach; endif; else: echo "" ;endif; endif; ?> </tbody> </table> </form> </div> <div class="box-footer clearfix text-center"> <?php echo $list->render(); ?> </div> <script src="<?php echo $admin_assets_path; ?>/js/common.js"></script> <script type="text/javascript"> $(function(){ $(".ajax").each(function(){ var newval; $(this).change(function(){ newval=$(this).val(); var data=$(this).attr("data"); var dataArr=data.split("|"),table=dataArr[0],colum=dataArr[1],key=dataArr[2],keyval=dataArr[3]; $.ajax({ type:"post", dataType:"json", data:{"table":table,"colum":colum,"columval":newval,"key":key,"keyval":keyval}, url:"<?php echo Core::addons_url('FriendLink://FriendLink/ajaxdata'); ?>", success:function(data){ if(data.code!=0){ alert(msg); } } }); }); }); }); </script> </body> </html>